<!DOCTYPE html. >
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
			*{
				/* 权重0  很容易被覆盖 */
				color:#ffaa00 !important;
				background: #55ffff;
			}
			div{/*权值 1*/
			color: #00ff00;
			background: #ff557f;
			}
			.dl{/*权值 10*/
			color: #00ff00;
			background: #aaff00;
			}
			div.dl{/*选择器权重之和*/
				color: #55ff00;
				background: #00ff00;
			}
			body.div.dl{/* 权值 12 */
			font-size: 25px;
			color: #000000;
			background: #ff0000;
			}
			#dl{/*权值 100*/
				font-size: 15x;
				color: #aaaaff;
				background: #aaff00;
			}
			div#dl{/*权值 101*/
			font-size: 20px;
			color: #51ff21;
			background: #ff20bc;
			}
			div#d1:hover{ /* 权值 111 */
				color: #aaaaff;
				background: #aaff00;
			}
		</style>
	</head>
	<body>
		<div class="dl" id="dl" style="color: red;" >Lorem ipsum, dolor sit amet consectetur adipisicing elit. Soluta, ipsa natus autem architecto fuga illum impedit praesentium magnam voluptas quos illo quidem vero, eos saepe sit ab reprehenderit eveniet. Quidem?</div>
	</body>
</html>